from kivy.core.text import LabelBase, DEFAULT_FONT
from kivy.core.window import Window

from kivy_cust.ConfigComm import ConfigComm


class ConfigApp(ConfigComm):
    def __init__(self):
        Window.size = (900, 700)  # 设置窗口默认大小
        Window.minimum_width, Window.minimum_height = 800, 600  # 设置窗体最小值
        Window.set_icon(ConfigComm.IMG_PIXEL_CAT)  # 设置程序图标
        LabelBase.register(DEFAULT_FONT, ConfigComm.FONT_SIMKAI)
